package com.ozy.kxreader.base

import com.ozy.kxreader.mvp.model.entity.BookList
import com.ozy.kxreader.mvp.model.entity.CategoryList
import io.reactivex.Observable
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * Created by 欧源 on 2018/1/30.
 */
interface Api {


    /**
     * 分类
     */
    @GET("/cats/lv2/statistics")
    fun getCategoryList(): Observable<CategoryList>

    //书列表
    @GET("/book/by-categories")
    fun getBookList(@Query("gender") gender: String?,
                    @Query("major") major: String?,
                    @Query("minor") minor: String?,
                    @Query("type") type: String?,
                    @Query("start") start: Int,
                    @Query("limit") limit: Int): Observable<BookList>
}